﻿using System.ComponentModel;
using System.Drawing;

namespace CanVasLib.Diagram
{
    public class Proxy
    {
        #region Fields

        private Canvas site;

        #endregion

        #region Constructor

        public Proxy(Canvas site)
        { this.site = site; }

        #endregion

        #region Fields && Properties

        [Browsable(false)]
        public Canvas Site
        {
            get { return site; }
            set { site = value; }
        }
        [Browsable(true), Description("背景颜色"), Category("Layout")]
        public Color BackColor
        {
            get { return this.site.BackColor; }
            set { this.site.BackColor = value; }
        }

        [Browsable(true), Description("获取/设置网格显示状态"), Category("Layout")]
        public bool ShowGrid
        {
            get { return this.site.ShowGrid; }
            set { this.site.ShowGrid = value; }
        }

        [Browsable(true), Description("视觉原点，左上角坐标"), Category("Layout")]
        public DiagramPoint ViewOriginPoint
        {
            get { return this.site.ViewOriginPoint; }
            set { this.site.ViewOriginPoint = value; }
        }

        [Browsable(true), Description("连线默认颜色"), Category("Layout")]
        public Color LineColor
        {
            get { return this.site.LineColor; }
            set { this.site.LineColor = value; }
        }

        [Browsable(true), Description("连线选中颜色"), Category("Layout")]
        public Color LineSelectedColor
        {
            get { return this.site.LineSelectedColor; }
            set { this.site.LineSelectedColor = value; }
        }

        [Browsable(true), Description("连线悬停颜色"), Category("Layout")]
        public Color LineHoveredColor
        {
            get { return this.site.LineHoveredColor; }
            set { this.site.LineHoveredColor = value; }
        }

        #endregion
    }
}